<div class="main f_r">
	<div class="uc_title m_10">
		<label class="current"><span>个人积分</span></label>
	</div>
	<div class="box m_10">
		<p class="text">您当前的积分：<b class="brown">{$this->memberRow['point']}</b>分</p>
	</div>
	<div class="form_content m_10">
		<div class="cont">
			<table class="list_table" width="100%" cellpadding="0" cellspacing="0">
			<col width="200px" />
			<col width="200px" />
			<col />
			<thead><tr><th>积分日期</th><th>积分</th><th>说明</th></tr></thead>
			<tbody>
                {set:$queryPointLog = Api::run('getUcenterPointLog')}
				{foreach:items = $queryPointLog->find()}
				<tr>
					<td>{$item['datetime']}</td><td>{$item['value']}分</td><td><span class="blue">{$item['intro']}</span></td>
				</tr>
                {/foreach}
                <tr><td colspan='3'>{$queryPointLog->getPageBar()}</td></tr>
			</tbody>
		</table>
		</div>
	</div>
	<div class="form_content m_10">
		<div class="uc_title2 m_10"><strong>积分兑换</strong></div>
		<div class="cont">
			<form action='{url:/ucenter/trade_ticket}' method='post'>
				<table class="form_table" width="100%" cellpadding="0" cellspacing="0">
					<col width="10px" />
					<col width="420px" />
					<col />
					{set:$ticketData = Api::run('getTicketList');}
					{foreach:items=$ticketData}
					<tr>
						<td></td>
						<td><b class="gray"><label class='attr'><input class="radio" type="radio" name='ticket_id' value="{$item['id']}" />{$item['name']}：{$item['value']}元（需要{$item['point']}积分）</b></td><td><label>有效日期：{$item['start_time']}至{$item['end_time']}</label></label></td>
					</tr>
					{/foreach}
					{if:!$ticketData}
					<tr><td></td><td colspan="2"><label>暂无优惠券</label></td></tr>
					{/if}
					<tr><td></td><td colspan="2"><label class="btn"><input type="submit" value="兑换优惠券" /></label></td></tr>
				</table>
			</form>
		</div>
	</div>
	<div class="prompt m_10">
		<p><strong>提示：</strong></p>
		<p class="indent">1、您兑换的优惠券为电子券，根据优惠券的不同，会具有不同的有效期</p>
		<p class="indent">2、电子优惠券仅限本ID使用，不能折算为现金、也不能再次兑换为积分</p>
	</div>
</div>